package com.skt.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.skt.common.annotation.Excel;
import com.skt.common.core.domain.BaseEntity;

/**
 * 挂号预约对象 appointments
 * 
 * @author ffbaby
 * @date 2025-02-22
 */
public class Appointments extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约记录的唯一标识符 */
    private Long appointmentId;

    /** 患者ID */
    private Long patientId;

    /** 医生ID */
    private Long doctorId;

    /** 科室名称 */
    @Excel(name = "科室名称")
    private String department;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 预约时间 */
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentTime;

    /** 预约时长 */
    @Excel(name = "预约时长")
    private Long appointmentDuration;

    /** 预约类型 */
    @Excel(name = "预约类型")
    private String appointmentType;

    /** 预约状态 */
    @Excel(name = "预约状态")
    private String status;

    /** 取消原因 */
    @Excel(name = "取消原因")
    private String cancellationReason;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setAppointmentId(Long appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() 
    {
        return appointmentId;
    }
    public void setPatientId(Long patientId) 
    {
        this.patientId = patientId;
    }

    public Long getPatientId() 
    {
        return patientId;
    }
    public void setDoctorId(Long doctorId) 
    {
        this.doctorId = doctorId;
    }

    public Long getDoctorId() 
    {
        return doctorId;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setAppointmentDate(Date appointmentDate) 
    {
        this.appointmentDate = appointmentDate;
    }

    public Date getAppointmentDate() 
    {
        return appointmentDate;
    }
    public void setAppointmentTime(Date appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public Date getAppointmentTime() 
    {
        return appointmentTime;
    }
    public void setAppointmentDuration(Long appointmentDuration) 
    {
        this.appointmentDuration = appointmentDuration;
    }

    public Long getAppointmentDuration() 
    {
        return appointmentDuration;
    }
    public void setAppointmentType(String appointmentType) 
    {
        this.appointmentType = appointmentType;
    }

    public String getAppointmentType() 
    {
        return appointmentType;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCancellationReason(String cancellationReason) 
    {
        this.cancellationReason = cancellationReason;
    }

    public String getCancellationReason() 
    {
        return cancellationReason;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appointmentId", getAppointmentId())
            .append("patientId", getPatientId())
            .append("doctorId", getDoctorId())
            .append("department", getDepartment())
            .append("appointmentDate", getAppointmentDate())
            .append("appointmentTime", getAppointmentTime())
            .append("appointmentDuration", getAppointmentDuration())
            .append("appointmentType", getAppointmentType())
            .append("status", getStatus())
            .append("cancellationReason", getCancellationReason())
            .append("notes", getNotes())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
